// 开发环境
const { resolve } = require('path')
const prod = require('./webpack.prod')

module.exports = {
  ...prod,
  mode: 'development',
  devServer: {
    static: {
      directory: resolve(__dirname, '../build'),
    },
    open: true,
    port: 9001,
    historyApiFallback: true, //给开发服务器发送请求,不管路径是什么,一律按照/处理
  },
}
